package team.seekers.hula.system.order.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;

import java.util.Date;

/**
 * @author hbc
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(OrderDOField.TABLE_NAME)
public class OrderDO{

    @TableId(value = OrderDOField.ID, type = IdType.ASSIGN_ID)
    private String id;

    @TableField(OrderDOField.USER_ID)
    private String userId;

    @TableField(OrderDOField.PRODUCT_ID)
    private String productId;

    @TableField(OrderDOField.PRODUCT_TYPE)
    private Integer productType;

    @TableField(OrderDOField.MONEY)
    private Double money;

    @TableField(OrderDOField.STATUS)
    private Integer status;

    @TableField(OrderDOField.CANCEL_REASON)
    private String cancelReason;

    @TableField(OrderDOField.DELETED)
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;

    @TableField(value = OrderDOField.GMT_CREATE, fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(value = OrderDOField.GMT_MODIFIED, fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
